package com.jd.ymcc.web.controller;


import com.jd.ymcc.dto.RegisterDto;
import com.jd.ymcc.result.JSONResult;
import com.jd.ymcc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping("/user")
public class RegisterController {
    @Autowired
    private IUserService userService;
    @PostMapping("/register")
    public JSONResult register(@RequestBody @Valid RegisterDto smsRegisterDto){
        userService.smsRegister(smsRegisterDto);
        return JSONResult.success();
    }
}
